package com.fy56.platform.logistics.redis;

import com.alibaba.fastjson.JSONObject;
import com.fy56.platform.logistics.redis.dbutil.RedisUtilsTemplate;
import com.fy56.platform.logistics.utils.HttpRequestMethedEnum;
import com.fy56.platform.logistics.utils.HttpUtil;
import com.fy56.platform.logistics.utils.HttpUtils;
import com.google.common.collect.Maps;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by li on 2018-02-05 15:43
 */
public class Test {

    public static void main(String[] args) {
        try{
//            Map<String,String> header=new HashMap<>();
////            String url="http://f6test.feiyang56.cn:1880/WeChat.asq?/orderBill/getMatchingCompany?databaseId=F6TEST&organizationCode=fyrjgs";
////            Map<String, String> reqBodyData  = new HashMap<String, String>();
////            Map<String, Object> postParams = Maps.newHashMap();
////            postParams.put("longitude","123.123");
////            postParams.put("latitude","45.45");
////
////            reqBodyData.put("data",JSONObject.toJSONString(postParams));
////            String a="data="+JSONObject.toJSONString(postParams);
////
////            String retStr = HttpUtils.sendHttp(HttpRequestMethedEnum.HttpPost, url, header, a, 0);
////            System.out.println("retStr:"+retStr);
            String a="已派车,张三丰，";
            System.out.print(a.length());
        }catch (Exception e){
            System.out.println("error:"+e.getMessage());
        }
    }
}
